<?php
namespace app\crontab;

class SendEmailTask
{
    // 定时规则
    public static $rule = '*/1 * * * * *';

    // 任务逻辑
    public static function run()
    {
        // 你的业务代码
        //echo "SendEmailTask running: " . date('Y-m-d H:i:s') . "\n";
    }
}